package Base;

public class Computer extends Electronics {
    private int memory;//内存
    private String cputype;//cpu型号

    public Computer() {
    }//无参构造

    public Computer(int memory, String cputype) {
        this.memory = memory;
        this.cputype = cputype;
    }//有参构造

    public int getMemory() {
        return memory;
    }

    public void setMemory(int memory) {
        this.memory = memory;
    }

    public String getCputype() {
        return cputype;
    }

    public void setCputype(String cputype) {
        this.cputype = cputype;
    }
}

